* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 20px;
}

.user-center-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
    background-color: #e0e0e0;
}

.user-info-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    padding: 10px;
}

.info-item label {
    display: block;
    color: #666;
    margin-bottom: 5px;
    font-size: 14px;
}

.info-item p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.tabs {
    display: flex;
    background: #fff;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}

.tab {
    padding: 15px 30px;
    cursor: pointer;
    border: none;
    background: none;
    color: #666;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.tab:hover {
    color: #3d8b40;
}

.tab.active {
    color: #2e7d32;
    font-weight: 500;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2e7d32;
}

.tab-content {
    display: none;
    background: #fff;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus {
    border-color: #2e7d32;
    outline: none;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .btn {
    padding: 6px 12px;
    font-size: 14px;
    min-width: 80px;
    max-width: 100px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #2e7d32;
    color: white;
}

.btn:hover {
    background: #3d8b40;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e8e8e8;
}

.article-publish {
    margin-bottom: 20px;
}

.article-list {
    margin-bottom: 20px;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.article-item:last-child {
    border-bottom: none;
}

.article-info {
    flex: 1;
}

.article-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.article-meta {
    font-size: 14px;
    color: #999;
}

.article-meta span {
    margin-right: 15px;
}

.article-actions {
    display: flex;
    gap: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    margin: 0 5px;
    border-radius: 4px;
}

.page-btn:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.page-info {
    margin: 0 15px;
    color: #666;
}

/* 头像预览样式 */
#avatar-preview {
    margin-top: 10px; 
    width: 100px; 
    height: 100px; 
    border-radius: 50%; 
    overflow: hidden;
}

#avatar-preview img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

/* 文章过滤区域样式 */
.article-filter {
    margin-bottom: 20px;
}

.article-filter .btn[style*="float: right"] {
    float: right;
}
